﻿using Itech_Run.Application.Contracts.Shared.Dto;
using System.ComponentModel.DataAnnotations;

namespace Itech_Run.Blog.Application.Contracts.Dto
{
    public class BlogInfoUpdateDto: CustomUpdateDto
    {
        [Required]
        [StringLength(200)]
        public string Title { get; set; }

        [Required]
        public string Content { get; set; }

        public bool? IsPublish { get; set; }

        public bool? AllowComment { get; set; }

        public bool? IsTop { get; set; }

        /// <summary>
        /// 1 公开;   2 仅登录用户;   3 只有我
        /// </summary>

        public int? WhoVisit { get; set; }

        public DateTime? TopTime { get; set; }

        public List<string> PersonCategoryList { get; set; } = new List<string>();

        public List<string> PersonLabelList { get; set; } = new List<string>();
    }
}
